package cn.itcast.usermanage.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.itcast.usermanage.pojo.User;

public interface UserMapper {

	public User queryUserById(Long id);
	
	public List<User> queryUserList(@Param("start")Integer page, @Param("rows")Integer rows);

	public Long countTotal();
//	使用PageHelper来进行分页
	public List<User> queryUserList();

	public void insertUser(User user);
	//
	public void deleteUserById(long l);

	public void deleteUserByIdSqlForeach(@Param("ids")Long[] ids);

    User queryByUserId(@Param("id") Long id);

	void updateUser(User user);
}
